import {Injectable, EventEmitter} from '@angular/core';

@Injectable()
export class EventService {

  public dragStartEvent: EventEmitter<{}>;
  public dropEvent: EventEmitter<{}>;
  public updateEvent: EventEmitter<{}>;
  constructor() {
    this.dragStartEvent = new EventEmitter<{}>();
    this.dropEvent = new EventEmitter<{}>();
    this.updateEvent = new EventEmitter<{}>();
  }

  public emitDragStartEvent(value: {}) {
    this.dragStartEvent.emit(value);
  }

  public emitDropEvent(value: {}) {
    this.dropEvent.emit(value);
  }

  public emitUpdateEvent(value: {}) {
    this.updateEvent.emit(value);
  }

}
